import testImgSrc from "./imgResource/test.jpg";

interface DetailModel {
  [key: string]: {
    width: number;
    factor: number;
    connectPosition: number[][];
    src?: string;
  };
}

export const SvgDetail: DetailModel = {
  RefrigerationUnit: {
    width: 98,
    factor: 98 / 69,
    connectPosition: [
      [0.33, 0.1],
      [0.11, 0.8],
      [0.98, 0.54],
      [0.98, 0.8],
    ],
  },
  Meter: {
    width: 13,
    factor: 13 / 16,
    connectPosition: [
      [0.5, 0.9],
      // [0.04, 0.9],
      // [0.92, 0.9],
    ],
  },
  WaterTank: {
    width: 43,
    factor: 43 / 46,
    connectPosition: [[0.96, 0.06]],
  },
  CoolingTower: {
    width: 62,
    factor: 62 / 63,
    connectPosition: [
      [0.5, 0],
      [0.1, 0.99],
      [0.5, 0.99],
      [0.9, 0.99],
      [1, 0.5],
      [0, 0.5],
    ],
  },
  CoolingWaterPump: {
    width: 72,
    factor: 72 / 51,
    connectPosition: [
      [0.2, 0],
      [0, 0.6],
    ],
  },
  AirConditioningUnit: {
    width: 72,
    factor: 72 / 49,
    connectPosition: [
      [0.18, 1],
      [0.82, 1],
    ],
  },
  WaterSeparator: {
    width: 72,
    factor: 72 / 34,
    connectPosition: [
      [0.5, 0],
      [0.25, 1],
      [0.75, 1],
    ],
  },
  WaterConcentrator: {
    width: 72,
    factor: 72 / 34,
    connectPosition: [
      [0.5, 0],
      [0.25, 1],
      [0.75, 1],
    ],
  },
  Valve: {
    width: 14,
    factor: 14 / 15,
    connectPosition: [
      [0.5, 0.64],
      // [0, 0.64],
      // [1, 0.64],
    ],
  },
  AirCooledHeatPump: {
    width: 73,
    factor: 73 / 66,
    connectPosition: [
      [0, 0.5],
      [0.5, 1],
      [0.5, 0],
      [1, 0.5],
    ],
  },
  ClosedWaterTank: {
    width: 53,
    factor: 1,
    connectPosition: [
      [0, 0.5],
      [0.5, 1],
      [0.5, 0],
      [1, 0.5],
    ],
  },
  ColdStorageTank: {
    width: 51,
    factor: 51 / 74,
    connectPosition: [
      [0, 0.5],
      [0.5, 1],
      [0.5, 0],
      [1, 0.5],
    ],
  },
  DrainWaterPump: {
    width: 72,
    factor: 72 / 50,
    connectPosition: [
      [0.27, 0.12],
      [1, 0.6],
    ],
  },
  EvaporativeCooling: {
    width: 86,
    factor: 86 / 66,
    connectPosition: [
      [0, 0.5],
      [0.5, 1],
      [0.5, 0],
      [1, 0.5],
    ],
  },
  HeatingHotWaterPump: {
    width: 74,
    factor: 74 / 51,
    connectPosition: [
      [0, 0.6],
      [0.72, 0.11],
    ],
  },
  PressWaterSupply: {
    width: 58,
    factor: 58 / 50,
    connectPosition: [
      [0.06, 0.63],
      [0.91, 0.63],
      [0.5, 1],
    ],
  },
  WaterSoftener: {
    width: 43,
    factor: 43 / 50,
    connectPosition: [[0.2, 0.5]],
  },
  ChilledWaterPump: {
    width: 72,
    factor: 72 / 50,
    connectPosition: [
      [0, 0.6],
      [0.73, 0.12],
    ],
  },
  ColdStoragePump: {
    width: 32,
    factor: 32 / 50,
    connectPosition: [
      [0, 0.82],
      [1, 0.82],
      [0.5, 0.99],
    ],
  },
};

export const ImgDetail: DetailModel = {
  test: {
    width: 150,
    factor: 1,
    connectPosition: [
      [0, 0.5],
      [0.5, 1],
      [0.5, 0],
      [1, 0.5],
    ],
    src: testImgSrc,
  },
};
